package hu.mapro.gwtui.gxt.client.fieldseditor;

import com.google.gwt.editor.client.EditorDelegate;
import com.google.gwt.user.client.ui.Widget;

public interface EditorFieldInterface<T, V> {

	void setContext(FieldCreationInterface ctx);
	
	void flush();

	void setDelegate(EditorDelegate<V> delegate);
	
	void edit(T baseObject);

	Widget asWidget();

	void focus();
	
	void checkDirty();

	String getPropertyName();

	String getLabel();
	
	V getValue(T object);
	
}